<template>
  <router-view></router-view>
</template>
<script setup>
import { onMounted } from "vue";
import { useManageStore } from "@/stores";
const manageStore = useManageStore();

// 获取基本设置保存至store
const getSetting = () => {
  manageStore
    .getSetting()
    .then((res) => {
        document.title = res.sys_name
    })
    .catch((error) => {
      console.log(error);
    });
};

onMounted(() => {
  getSetting();
});
</script>
<style>
@import "./assets/fonts/fonts.css";

#app {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  font-size: 14px;
  /* font-family: "Microsoft YaHei", "MicrosoftYaHei"; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  /* font-family: "Alibaba PuHuiTi"; */
}

body,
html {
  padding: 0;
  margin: 0;
  height: 100%;
  position: relative;
}

html ::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 0px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 0px;
}

html ::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 4px;
  background: #cdcdcd;
}

html ::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  border-radius: 4px;
  background: white;
  margin: 0;
}
</style>
